package com.regex.web.vo;

import java.io.Serializable;

import lombok.Data;

@Data
public class ImportResultVO implements Serializable {
    
    /**
     */
    private static final long serialVersionUID = 4034671066545162271L;
    private int successNum;
    private int failureNum;
    private int repeatNum;
    private String failureMsg;
    
    public ImportResultVO() {}
    
    public ImportResultVO(int successNum, int failureNum, String failureMsg) {
        this.failureMsg = failureMsg;
        this.failureNum = failureNum;
        this.successNum = successNum;
    }
    
    public static ImportResultVO result(int successNum, int failureNum,  String failureMsg){
        ImportResultVO result = new ImportResultVO(successNum, failureNum, failureMsg);
        return result;
    }
    public ImportResultVO(int successNum, int failureNum, int repeatNum, String failureMsg) {
        this.failureMsg = failureMsg;
        this.failureNum = failureNum;
        this.successNum = successNum;
        this.repeatNum = repeatNum;
    }
    
    public static ImportResultVO result(int successNum, int failureNum, int repeatNum, String failureMsg){
        ImportResultVO result = new ImportResultVO(successNum, failureNum, repeatNum, failureMsg);
        return result;
    }

}
